You
can create a new command from scratch, copy an existing command
to create a new command, or edit the properties of an existing command. When
you create or edit a command, the properties you can define are
the command name, description, extended help file, command display
name, macro, tags, element ID (for new commands only), and small
or large image.
When
you change the properties of a command in the Command List pane, the
command is updated for all user interface elements that reference
the command.
Show Me: Create a Command
The following animation
shows how to create a custom command in the main CUIx file. The
animation covers assigning a command a name, description, and macro.
For assigning an image to a command see
Create and Edit Custom Images for Commands.
Click Manage
tab Customization
panel User
Interface. At the command prompt,
enter cui.
In the Customize User Interface Editor,
Customize tab, Command List pane, click Create a New Command.
A new command (named Command1) is displayed
in both the Command List pane and the Properties pane.
In the Properties pane, do the following:
In the Name box, enter a name for the
command. The name is displayed as a tooltip or menu name when the
command is added to a user interface element.
In the Description box, enter a description
for the command. The description will be displayed on the status
bar or in a tooltip. When the cursor hovers over the command on
a menu, the description is displayed on the status bar while if
it is on a toolbar or ribbon panel it is displayed in a tooltip.
In the Extended Help File box, enter
the name of the file and ID to use for the extended help for the
command.
In the Command Display Name box, enter
the name of the command that you want to display for the command.
In the Macro box, enter a macro for the
command.
In the Tags box, enter the tags you want
to use when searching for commands in the Search field of the application
menu.
In the Element ID box, enter an element
ID for the command.
Click Manage
tab Customization
panel User
Interface. At the command prompt,
enter cui.
In the Customize User Interface Editor,
Customize tab, Command List pane, select Custom from the Command
Filter drop-down list.
The list is filtered
to only show the commands that you have created in the loaded customization
files.
Select the command to be removed, and
right-click over the command.
Click Remove.
NoteA command only can
be removed when it is not being referenced by a user interface element,
such as a toolbar or menu.
WarningThere is no way to
undo the removal of a command or user interface element from inside
the Customize User Interface (CUI) Editor, so be careful when removing
commands and user interface elements. If you accidentally remove
the wrong command or user interface element the best thing to do
is click Cancel, but this will also undo any other changes that
you might have made. If you already made several changes to the
CUIx file and do not want to lose the changes that you already made,
you can open the backup CUIx file that is automatically created
after a change is made to a CUIx file from the Transfer tab and
then proceed to recover the command or user interface element that
was accidentally removed.
To edit a command
Click Manage
tab Customization
panel User
Interface. At the command prompt,
enter cui.
In the Customize User Interface Editor,
Customize tab, do one of the following:
In the Command List pane, select the
command you want to edit.
In the Customizations In <file
name> pane, tree view, locate and then select the
command you want to edit.
In the Properties pane, do any of the
following to edit the command:
In the Name box, enter a name for the
command. The name is displayed as a tooltip or menu name when the
command is added to a user interface element.
In the Description box, enter a description
for the command. The description will be displayed on the status
bar or in a tooltip. When the cursor hovers over the command on
a menu, the description is displayed on the status bar while if
it is on a toolbar or ribbon panel it is displayed in a tooltip.
In the Extended Help File box, enter
the name of the file and ID to use for the extended help for the
command.
In the Command Display Name box, enter
the name of the command that you want to display for the command.
In the Macro box, enter a macro for the
command.
In the Tags box, enter the tags you want
to use when search for commands with the Search field of the application
menu.
In the Element ID box, enter an element
ID for the command. (For new commands only. You cannot modify the
element ID of an existing command).